package com.sf.osms.dep.processor.handler;

import com.sf.osms.dep.domain.Router;
public class NRTDynamicRule {
	public static String getSfCode(com.sf.osms.dep.domain.Router router) {
		String retVal = "";
		if(router.gt().get("_申告番号").length() == 0)
			retVal = retVal + "612@";
		if(router.gt().get("_申告番号").length() > 2 && router.gt().get("_申告番号").substring(1,2).equals("0"))retVal = retVal + "16@";
		if(router.gt().get("_許可日").length() != 0 )retVal = retVal + "14@";
		if(router.gt().get("_審査区分").equals("2") || router.gt().get("_審査区分").equals("3"))retVal = retVal + "15@";
		return retVal;}
	
	
	public static void main(String[] args) {
		Router router = new Router();
		router.setAdjustEventCodeInfo("_審査区分", "3");
		router.setAdjustEventCodeInfo("_申告番号", "40695630130");
		System.out.println(getSfCode(router));
	}
}